﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RecruitmentPage.Models.RPModel
{
    public class Education
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public Guid UniqueId { get; set; }

        public string StartDate { get; set; }
        public string EndDate { get; set; }
        public string Note { get; set; }

        [ForeignKey("PersonalId")]
        public PersonalInfor PersonalInfor { get; set; }
        public Guid PersonalId { get; set; }

        [ForeignKey("MajorId")]
        public Major Major { get; set; }
        public Guid MajorId { get; set; }


        [ForeignKey("UniversityId")]
        public University University { get; set; }
        public Guid UniversityId { get; set; }


        [ForeignKey("DegreeId")]
        public Degree Degree { get; set; }
        public Guid DegreeId { get; set; }



        [ForeignKey("KindofDegreeId")]
        public KindofDegree KindofDegree { get; set; }
        public Guid KindofDegreeId { get; set; }


    }
}